package shuashuami.hb.com.entity.agent;

import org.json.JSONObject;

/**
 * created by zhangqi at 2017/7/10
 */
public class ApplyMsgBean {
    private int id;
    private int parent_id;
    private String memo;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public String getMemo() {

        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
        if(memo.equals("")){
            this.memo = "该申请人暂无申请信息!";
        }

    }

    public void resoloveByJson(JSONObject content) throws Exception{
        id=content.getInt("id");
        parent_id=content.getInt("parent_id");
        memo=content.getString("memo");
        if(memo.equals("")){
            memo="暂无申请消息";
        }
    }
}
